package cn.panda.edu.service;

import cn.panda.edu.model.Select;
import com.github.pagehelper.PageInfo;

/**
 * 
 * 接口描述：  选择题接口
 * @author: 张春雷
 * @date： 2018-01-16 下午5:09:15
 */
public interface SelectService {
	/**
	 * 
	* @Title: listSelectByCourseId 
	* @Description: cxf根据课程id获取该课程考试的选择题
	* @param courseId
	* @return  
	* PageInfo<Select>
	 */
	PageInfo<Select> listSelectByCourseId(Integer courseId, Integer pageIndex, Integer pageSize);

	/**
	 * 
	* @Title: listSelectBySectionTestId 
	* @Description: cxf根据章节测试id获取对应的选择题
	* @param sectionTestId
	* @param i
	* @param j
	* @return  
	* PageInfo<Select>
	 */
	PageInfo<Select> listSelectBySectionTestId(Integer sectionTestId, Integer pageIndex, Integer pageSize);
	/**
	 * 
	* @Title: selectByPrimaryKey 
	* @Description: TODO 通过ID查询选择题信息
	* @param @param selectId
	* @param @return  
	* @return Select
	 */
	Select selectByPrimaryKey(Integer selectId);
	
	/**
     * 
    * @Title: updateByPrimaryKeySelective 
    * @Description: 动态更新题目 
    * @param @param record
    * @return int
     */
    int updateByPrimaryKeySelective(Select record);
    
    /**
	 * 
	* @Title: deleteByPrimaryKey 
	* @Description:  根据题目编号删除
	* @param @param selectId
	* @return int
	 */
    int deleteByPrimaryKey(Integer selectId);
    
    /**
     * 
    * @Title: insertSelective 
    * @Description:  动态添加题目
    * @param @param record
    * @return int
     */
    int insertSelective(Select record);
}
